doctype html
html
    head
        meta(charset="utf-8")
        meta(name="apple-mobile-web-app-capable", content="yes")
        meta(name="apple-mobile-web-app-status-bar-style", content="black")
        meta(name="format-detection", content="telephone=no, email=no")
        meta(http-equiv="X-UA-Compatible", content="IE=edge")
        meta(http-equiv="cache-control", content="no-cache")
        meta(name="viewport", content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no")

        //favicon
        if htmlWebpackPlugin.files.favicon
            link(rel="shortcut icon",  href=htmlWebpackPlugin.files.favicon + '?v=' + htmlWebpackPlugin.options.version, sizes="16x16")

        title= htmlWebpackPlugin.options.title

        style(type='text/css').
            #bootstrapLoading {
                position: absolute;
                z-index: 9999999;
                top: 50%;
                left: 50%;
                width: 80px;
                height: 80px;
                margin: -40px 0 0 -40px;
            }

            .double-bounce1, .double-bounce2 {
                width: 100%;
                height: 100%;
                border-radius: 50%;
                background-color: #007CB9;
                opacity: 0.6;
                position: absolute;
                top: 0;
                left: 0;
                animation: bounce 2.0s infinite ease-in-out;
            }

            .double-bounce2 {
                animation-delay: -1.0s;
            }

            @keyframes bounce {
                0%, 100% {
                    transform: scale(0.0);
                }
                50% {
                    transform: scale(1.0);
                }
            }

        script.

        //---------------------------

        //headerEmbedJs
        script
            != htmlWebpackPlugin.options.headerEmbedJs

        //css
        each cssChunkName in htmlWebpackPlugin.files.css
            link(href=cssChunkName, rel="stylesheet")

    body

        #react-root

        //js
        each jsChunkName in htmlWebpackPlugin.files.js
            script(src=jsChunkName, defer)
